package com.five.controller;

import com.five.pojo.ClubPeople;
import com.five.pojo.Result;
import com.five.service.ClubPeopleService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lenovo
 */
@Tag(name = "社团成员个人中心")
@RestController
@RequestMapping("/ClubPeople")
public class ClubPeopleController {
    @Autowired
    ClubPeopleService clubPeopleService;
    @Operation(summary = "个人中心")
    @GetMapping("/findByName")
    public Result find(String name){
        ClubPeople clubPeople = clubPeopleService.findByName(name);
        return Result.success(clubPeople);
    }
}
